import {addInfo, imageUploadInfo} from "@/api/serve/url/blog/add";
import {respInterface} from "@/api/interface";
import {getResponseData} from "@/api/responseData";
import mockjs from "mockjs";

const listRespData = mockjs.mock({
    data:{
        url:'https://s1.ax1x.com/2022/11/09/zSyhQK.jpg'
    }
})
const listRespJson = listRespData.data;

export default [{
    url: addInfo.url(),
    method: addInfo.method,
    // statusCode: 500,
    response: (): respInterface => {
        return getResponseData({})
    },
},{
    url: imageUploadInfo.url(),
    method: imageUploadInfo.method,
    response: (): respInterface => {
        return getResponseData(listRespJson)
    },
}]